<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<title>文本不能被选择</title>
</head>

<body onselectstart="return Tselect()">
<script type="text/javascript">
function Tselect(){
	alert("不允许选择文本！");
    return false;
}
</script>
<h2>欢迎访问本网站</h2>
</body>
</html>
